FROM java:8
ARG profile
ARG version
ENV profile=${profile}
ENV version=${version}
#同步时区
COPY ./Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone

# 启动时执行命令
CMD  java -server -Xms8g -Xmx12g -XX:SurvivorRatio=8 -XX:+UseParallelGC -XX:HeapDumpPath=/mt/tms-transportsale-manager/dump  -XX:+PrintGCDetails -XX:+PrintGCTimeStamps  -XX:+HeapDumpOnOutOfMemoryError -jar   /home/zhny/renren-fast.jar --spring.profiles.active=${profile}